﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SWENAssignment
{
    public partial class reportingReport : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (rblReport.Text == "Room Occupancy")
            {
                Response.Redirect("roomOccupancyReport.aspx");
            }
            else if (rblReport.Text == "Housekeeping Report")
            {
                Response.Redirect("housekeepingReport.aspx");
            }
            else
            {
            }
        }

        protected void calendarFrom_SelectionChanged(object sender, EventArgs e)
        {
            TextBox1.Text = calendarFrom.SelectedDate.ToString("yyyy-MM-dd");
            Session["f"] = TextBox1.Text;
        }

        protected void calendarTo_SelectionChanged(object sender, EventArgs e)
        {
            TextBox2.Text = calendarTo.SelectedDate.ToString("yyyy-MM-dd");
            Session["t"] = TextBox2.Text;
        }

        protected void rblReport_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}